package kd.his_alarm_consumer_feign.configuration;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static java.util.concurrent.TimeUnit.SECONDS;

/**
 * @author：双
 * @time: 2020-02-16 21:56
 * @description:
 * @params: $
 * @return:$
 **/
@Configuration
public class FeignConfig {
	
	@Bean
	public Retryer feignRetryer(){
		return new  Retryer.Default(100,SECONDS.toMillis(1),5);
	}
}
